package vesko1.model;

public class Car implements Comparable<Car>{

    private String regNumber;
    private String rama;
    private String marka;
    private String model;
    private float cubics;
    private float tonnage;
    private int seats;
    private int yearOfMade;
    private Person driver;
    private Person owner;

    public Car(String regNumber, String rama, String marka, 
            String model, float cubics, float tonnage, 
            int seats, int yearOfMade, Person driver, Person owner) {
        this.regNumber = regNumber;
        this.rama = rama;
        this.marka = marka;
        this.model = model;
        this.cubics = cubics;
        this.tonnage = tonnage;
        this.seats = seats;
        this.yearOfMade = yearOfMade;
        this.driver = driver;
        this.owner = owner;
    }

    
    
    public float getCubics() {
        return cubics;
    }

    public Person getDriver() {
        return driver;
    }

    public String getMarka() {
        return marka;
    }

    public String getModel() {
        return model;
    }

    public Person getOwner() {
        return owner;
    }

    public String getRama() {
        return rama;
    }

    public String getRegNumber() {
        return regNumber;
    }

    public int getSeats() {
        return seats;
    }

    public float getTonnage() {
        return tonnage;
    }

    public int getYearOfMade() {
        return yearOfMade;
    }

    public void setCubics(float cubics) {
        this.cubics = cubics;
    }

    public void setDriver(Person driver) {
        this.driver = driver;
    }

    public void setMarka(String marka) {
        this.marka = marka;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public void setOwner(Person owner) {
        this.owner = owner;
    }

    public void setRama(String rama) {
        this.rama = rama;
    }

    public void setRegNumber(String regNumber) {
        this.regNumber = regNumber;
    }

    public void setSeats(int seats) {
        this.seats = seats;
    }

    public void setTonnage(float tonnage) {
        this.tonnage = tonnage;
    }

    public void setYearOfMade(int yearOfMade) {
        this.yearOfMade = yearOfMade;
    }

    @Override
    public int compareTo(Car o) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public String toString() {
        return "Car{" + "regNumber=" + regNumber + ", rama=" + rama + ", marka=" + marka + ", model=" + model + ", cubics=" + cubics + ", tonnage=" + tonnage + ", seats=" + seats + ", yearOfMade=" + yearOfMade + ", driver=" + driver + ", owner=" + owner + '}';
    }
       
}
